
/**
 *	a wrapper class for b2Vec3 in box2d.
**/
public class b2Vec3 extends b2AllocationGuard {

	public b2Vec3(int addr) {
		super(addr);
	}

	@Override
	public void release() {
		if ( address != 0 ) {
			jni_b2Vec3_release(address);
			super.release();
		}
	}

	public b2Vec3() {
		address = jni_b2Vec3();
	}

	public b2Vec3(float x, float y, float z) {
		address = jni_b2Vec3_xyz(x, y, z);
	}

	private static native int jni_b2Vec3();
	private static native int jni_b2Vec3_xyz(float x, float y, float z);
	private static native void jni_b2Vec3_release(int me);
}
